package com.chixing.day12_date_factory.word;

import java.time.LocalDateTime;

public class Myorder {
    private int orderId;
    private long orderNumber;
    private double orderPrice;
    private LocalDateTime localDateTime;
    private Customer customer;

    public Myorder(){}
    public Myorder(int orderId, long orderNumber, double orderPrice, LocalDateTime localDateTime, Customer customer) {
        this.orderId = orderId;
        this.orderNumber = orderNumber;
        this.orderPrice = orderPrice;
        this.localDateTime = localDateTime;
        this.customer = customer;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public LocalDateTime getLocalDateTime() {
        return localDateTime;
    }

    public void setLocalDateTime(LocalDateTime localDateTime) {
        this.localDateTime = localDateTime;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    @Override
    public String toString() {
        return "Myorder{" +
                "orderId=" + orderId +
                ", orderNumber=" + orderNumber +
                ", orderPrice=" + orderPrice +
                ", localDateTime=" + localDateTime +
                ", customer=" + customer +
                '}';
    }
}
